[INFO] cloning repository https://github.com/weiyinfu/learnRust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/weiyinfu/learnRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweiyinfu%2FlearnRust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweiyinfu%2FlearnRust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e8ae9912ed3b3c3b6cee70eec8b73c7dad18becc
[INFO] building weiyinfu/learnRust against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweiyinfu%2FlearnRust" "/workspace/builds/worker-6/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/weiyinfu/learnRust on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/weiyinfu/learnRust
[INFO] finished tweaking git repo https://github.com/weiyinfu/learnRust
[INFO] tweaked toml for git repo https://github.com/weiyinfu/learnRust written to /workspace/builds/worker-6/source/Cargo.toml
[INFO] crate git repo https://github.com/weiyinfu/learnRust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8a83d808fce2eda0d66e833f9a47e6fc4e43a1cac0f66db7bb3a49fafbab7d7d
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "8a83d808fce2eda0d66e833f9a47e6fc4e43a1cac0f66db7bb3a49fafbab7d7d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8a83d808fce2eda0d66e833f9a47e6fc4e43a1cac0f66db7bb3a49fafbab7d7d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8a83d808fce2eda0d66e833f9a47e6fc4e43a1cac0f66db7bb3a49fafbab7d7d", kill_on_drop: false }`
[INFO] [stdout] 8a83d808fce2eda0d66e833f9a47e6fc4e43a1cac0f66db7bb3a49fafbab7d7d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 13ed73738bea8843d6acb6b2490ab0cd20c45cbcfd7f29604a6b6eae87535b1b
[INFO] running `Command { std: "docker" "start" "-a" "13ed73738bea8843d6acb6b2490ab0cd20c45cbcfd7f29604a6b6eae87535b1b", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.69
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]    Compiling syn v1.0.18
[INFO] [stderr]    Compiling fnv v1.0.6
[INFO] [stderr]    Compiling slab v0.4.2
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling futures-task v0.3.4
[INFO] [stderr]    Compiling ryu v1.0.4
[INFO] [stderr]    Compiling unicode-width v0.1.7
[INFO] [stderr]    Compiling try-lock v0.2.2
[INFO] [stderr]    Compiling smallvec v0.4.5
[INFO] [stderr]    Compiling num-traits v0.2.11
[INFO] [stderr]    Compiling num-integer v0.1.42
[INFO] [stderr]    Compiling proc-macro2 v1.0.12
[INFO] [stderr]    Compiling textwrap v0.11.0
[INFO] [stderr]    Compiling futures-util v0.3.4
[INFO] [stderr]    Compiling http v0.2.1
[INFO] [stderr]    Compiling quote v1.0.4
[INFO] [stderr]    Compiling serde_json v1.0.52
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling net2 v0.2.34
[INFO] [stderr]    Compiling iovec v0.1.4
[INFO] [stderr]    Compiling backtrace-sys v0.1.35
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling time v0.1.43
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling backtrace v0.3.46
[INFO] [stderr]    Compiling clap v2.33.0
[INFO] [stderr]    Compiling mio v0.6.22
[INFO] [stderr]    Compiling error-chain v0.10.0
[INFO] [stderr]    Compiling chrono v0.4.11
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling tokio v0.2.20
[INFO] [stderr]    Compiling http-body v0.3.1
[INFO] [stderr]    Compiling ferris-says v0.1.2
[INFO] [stderr]    Compiling tokio-util v0.3.1
[INFO] [stderr]    Compiling h2 v0.2.4
[INFO] [stderr]    Compiling pin-project-internal v0.4.9
[INFO] [stderr]    Compiling serde_derive v1.0.106
[INFO] [stderr]    Compiling pin-project v0.4.9
[INFO] [stderr]    Compiling hyper v0.13.5
[INFO] [stderr]    Compiling learnRust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function is never used: `b`
[INFO] [stdout]   --> src/cnTest.rs:32:4
[INFO] [stdout]    |
[INFO] [stdout] 32 | fn b() {}
[INFO] [stdout]    |    ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `haha`
[INFO] [stdout]  --> src/useFolder/one.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn haha() {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `haha`
[INFO] [stdout]  --> src/useFolder/mod.rs:3:4
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn haha() {
[INFO] [stdout]   |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `queenCount` should have a snake case name
[INFO] [stdout]   --> src/bin/14-基于面向对象的八皇后.rs:55:42
[INFO] [stdout]    |
[INFO] [stdout] 55 |     fn go(&mut self, x: usize, y: usize, queenCount: i32) {
[INFO] [stdout]    |                                          ^^^^^^^^^^ help: convert the identifier to snake case: `queen_count`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::DerefMut`
[INFO] [stdout]  --> src/bin/03-链表小练习-实现move_next.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::DerefMut;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::fmt`
[INFO] [stdout]  --> src/bin/40-手势密码的种数.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use core::fmt;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde::export::Formatter`
[INFO] [stdout]  --> src/bin/40-手势密码的种数.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use serde::export::Formatter;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/bin/40-手势密码的种数.rs:134:17
[INFO] [stdout]     |
[INFO] [stdout] 134 |             let mut c = get_patterns(&mut dp, j, i).clone().to_vec();
[INFO] [stdout]     |                 ----^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `a[_][_]`, as `Fn` closures cannot mutate their captured variables
[INFO] [stdout]   --> src/bin/13-闭包递归八皇后.rs:56:17
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 a[x][y] = 1;
[INFO] [stdout]    |                 ^^^^^^^^^^^ cannot assign
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `a[_][_]`, as `Fn` closures cannot mutate their captured variables
[INFO] [stdout]   --> src/bin/13-闭包递归八皇后.rs:58:17
[INFO] [stdout]    |
[INFO] [stdout] 58 |                 a[x][y] = 0;
[INFO] [stdout]    |                 ^^^^^^^^^^^ cannot assign
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `a` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/bin/13-闭包递归八皇后.rs:46:14
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let canput = |x: &usize, y: &usize| {
[INFO] [stdout]    |                  ---------------------- immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 21 |                         if a[xx as usize][yy as usize] != 0 {
[INFO] [stdout]    |                            - first borrow occurs due to use of `a` in closure
[INFO] [stdout] ...
[INFO] [stdout] 46 |         go: &|g, x, y| {
[INFO] [stdout]    |              ^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 55 |             if canput(&x, &y) {
[INFO] [stdout]    |                ------ immutable borrow later captured here by closure
[INFO] [stdout] 56 |                 a[x][y] = 1;
[INFO] [stdout]    |                 - second borrow occurs due to use of `a` in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0502, E0594.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0502`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `learnRust`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "13ed73738bea8843d6acb6b2490ab0cd20c45cbcfd7f29604a6b6eae87535b1b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "13ed73738bea8843d6acb6b2490ab0cd20c45cbcfd7f29604a6b6eae87535b1b", kill_on_drop: false }`
[INFO] [stdout] 13ed73738bea8843d6acb6b2490ab0cd20c45cbcfd7f29604a6b6eae87535b1b
